package ar.uade.fain.ai.tpo.view.comida;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JTextField;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class ModificarComida extends javax.swing.JFrame {
	
	private static final long serialVersionUID = 1L;
	
	private JButton modificarComidaButton;
	private JTextField nombreField;
	private JTextField idRecetaField;
	private JLabel jLabel1;
	private JTextField idRecetaNuevaField;
	private JLabel idRecetaLabel;
	private JLabel nombreLabel;
	private JButton buscarButton;
	private JTextField idText;
	private JLabel idLabel;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				ModificarComida inst = new ModificarComida();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public ModificarComida() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			{
				modificarComidaButton = new JButton();
				getContentPane().add(modificarComidaButton);
				modificarComidaButton.setText("Aceptar");
				modificarComidaButton.setBounds(132, 143, 110, 23);
			}
			{
				idLabel = new JLabel();
				getContentPane().add(idLabel);
				idLabel.setText("Id de la comida :");
				idLabel.setBounds(21, 17, 147, 16);
			}
			{
				idText = new JTextField();
				getContentPane().add(idText);
				idText.setBounds(160, 16, 93, 21);
			}
			{
				buscarButton = new JButton();
				getContentPane().add(buscarButton);
				buscarButton.setText("Buscar");
				buscarButton.setBounds(291, 15, 94, 23);
			}
			{
				nombreLabel = new JLabel();
				getContentPane().add(nombreLabel);
				nombreLabel.setText("Nombre:");
				nombreLabel.setBounds(28, 69, 74, 16);
			}
			{
				nombreField = new JTextField();
				getContentPane().add(nombreField);
				nombreField.setBounds(120, 68, 74, 18);
			}
			{
				idRecetaLabel = new JLabel();
				getContentPane().add(idRecetaLabel);
				idRecetaLabel.setText("idRecetaNueva: ");
				idRecetaLabel.setBounds(28, 102, 85, 16);
			}
			{
				idRecetaNuevaField = new JTextField();
				getContentPane().add(idRecetaNuevaField);
				idRecetaNuevaField.setBounds(149, 95, 36, 23);
			}
			{
				jLabel1 = new JLabel();
				getContentPane().add(jLabel1);
				jLabel1.setText("idReceta:");
				jLabel1.setBounds(242, 69, 65, 16);
			}
			{
				idRecetaField = new JTextField();
				getContentPane().add(idRecetaField);
				idRecetaField.setBounds(304, 68, 56, 21);
			}
			pack();
			this.setSize(428, 255);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

}
